package com.bgs.service.impl;

import com.bgs.pojo.Money;
import com.bgs.mapper.MoneyMapper;
import com.bgs.service.MoneyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bgs.vo.MoneyVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 工资表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2022-05-08
 */
@Service
public class MoneyServiceImpl extends ServiceImpl<MoneyMapper, Money> implements MoneyService {

    @Override
    public void updateBymonth(MoneyVo mvo) {
        baseMapper.updateBymonth(mvo);
    }

    @Override
    public List<MoneyVo> listAll(MoneyVo m) {
        return baseMapper.listAll(m);
    }

    @Override
    public boolean updateMoney(MoneyVo m) {
        return baseMapper.updateMoney(m);
    }

    @Override
    public boolean addMoney(MoneyVo m) {
        return baseMapper.insertSelective(m);
    }

    @Override
    public boolean deleteByPrimaryKey(Integer id) {
        return baseMapper.deleteByPrimaryKey(id);
    }
}
